{extend name="layout/layout"}
{block name="content"}
<main class="user_page  ">
    <section class="">
        <div class="layui-main">
            <div class="user_con">
                <div class="user_headpage" data-load="user_active_header">
                    {include file="user_activity/page_menu" menu='pay' id="$id" /}
                </div>
                <div class="right_main ">
                    <p class="ft24 mb10 ft-bold">付款方式</p>
                    <div class="layui-main">
                        <div class="active_w active3 ">
                            <p class="text-align-center ft18 mb60 ft-bold">請選擇付款方式</p>
                            <form onsubmit="return false;" lay-filter="pay" class="layui-form">
                                <div class="content">
                                    <div class=" layui-form-item">
                                        <div class="label ">Stripe
                                        </div>
                                        <input type="checkbox" {if isset($pay_type) && in_array('Stripe',$pay_type)} checked {/if} name="pay_type[]" value="Stripe"
                                               title="接受VISA, MasterCard, JCB, UnionPay銀聯卡線上刷卡，僅開放給以美金與港幣收費的活動使用。">
            
                                    </div>
                                    <div class=" layui-form-item">
                                        <div class="label ">Paypal
                                        </div>
                                        <input type="checkbox" {if isset($pay_type) && in_array('Paypal',$pay_type)} checked {/if}  name="pay_type[]" value="Paypal"
                                               title="paypal。">
            
                                    </div>
            
                                </div>
                                <div class="mt40 d-flex jc-s al-c">
                                    <button class="layui-btn layui-btn-lg w100 layui-bg-orange next-btn"
                                            onclick="save()">储存
                                    </button>
                                </div>
                            </form>
                        </div>
            
                    </div>
                </div>
            </div>
        </div>
    </section>
</main>


<script>
     function save() {
        var data = layui.form.val('pay');
        $.quickPost('/activity/user/activity/{$act.id}/pay', data)
    }
</script>

{/block}
